<div >    
<% if  @flashes == nil %>
  
<% else %>
  <table class="datalist">
  <tr>
    <th scope="col" width="100px">名称</th>
    <th scope="col" width="100px">描述</th>
    <th colspan="5" scope="col" width="350px"></th>
  </tr>
  <% 
    i = 0  
    @flashes.each do |c| 
  %>
    <% if i%2 == 0 %>
  <tr>
    <% else %>
  <tr  class="altrow">    
    <% end %>
    <td><%=h c.name %></td>
    <td><%=h c.description %></td>
    <td><a href="#">查看</a></td>
    <td><%= link_to '删除', {:id => c, :action => :destroy_flash}, :confirm => '确定删除?'  %></td>
  </tr>
  <% 
    i += 1
    end 
  %>
</table>
</div>
<% end %>
